import { Inject } from '@nestjs/common';
import { DATABASE_CLIENT } from './database.module';

/**
 * 注入数据库客户端装饰器
 * 
 * @example
 * ```typescript
 * @Injectable()
 * export class UserService {
 *   constructor(@InjectDB() private db: Database) {}
 * }
 * ```
 */
export const InjectDB = () => Inject(DATABASE_CLIENT);

